package com.snail.app.config.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @description
 * @date 2021/8/5
 * @autor houyanfeng
 */
@Data
@Entity
@Table(name = "db_api_info")
public class DbApiInfo implements Serializable {
    @Id
    @Column(length = 32)
    private String id;
    @Column(length = 20)
    private String dbId;//DbConfigDatabase主键
    @Column(name = "is_dir")
    private Integer isDir;//是否目录
    @Column(name = "parent_dir", length = 32)
    private String parentDir;//上级目录，顶级写0
    @Column(length = 30)
    private String name;//api名称
    @Column(name = "query_sql", columnDefinition = "text")
    private String querySql;

    private Integer flag;
}
